﻿namespace WebServiceExtensions.CallCounterExtension
{
    using System;
    using System.Web.Services.Configuration;

    using WebServiceExtensions.Common;

    /// <summary>
    /// Used to manage call counters
    /// </summary>
    public class CallCounterManager
    {
        /// <summary>
        /// Gets the call counter manager.
        /// </summary>
        public static CallCounter CallCounters
        {
            get
            {
                return CallCounterExtension.CallCounters;
            }
        }

        /// <summary>
        ///   Registers the SOAP log extension.
        /// </summary>
        public static void RegisterCallCounterExtension()
        {
            Type logExtensionType = typeof(CallCounterExtension);
            Utils.RegisterSoapExtension(logExtensionType.AssemblyQualifiedName, 1, PriorityGroup.High);
        }
    }
}
